package me.zhengjie.modules.rest.intell;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.intellectual.Software;
import me.zhengjie.modules.service.intell.SoftwareService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("企业软件著作权Api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/soft")
public class SoftwareController {

    private final SoftwareService softwareService;

    @AnonymousAccess
    @ApiOperation("根据企业名称查询软件著作权信息")
    @GetMapping("/querySoftwareByName")
    public List<Software> querySoftwareByName(String name){
        return softwareService.querySoftwareByName(name);
    }

}
